home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / perl5 / 5.8.7 / Net / demos / inetd < prev    next >
Text File  |  2006-04-25  |  197b  |  10 lines

  1. #!/usr/local/bin/perl
  2.  
  3. use Net::DummyInetd;
  4. use Net::SMTP;
  5.  
  6. $p = new Net::DummyInetd qw(/usr/lib/sendmail -ba -bs);
  7.  
  8. $smtp = Net::SMTP->new('localhost', Port => $p->port, Debug => 7);
  9. $smtp->quit;
  10.